/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.powerhua.core.utils;

import java.io.UnsupportedEncodingException;

/**
 *
 * @author Administrator
 */
public class EncodingUtil {
    
    public static String isoToUtf8(String source) {
        String result = "";
        
        if(StringUtil.isNullOrEmpty(source)) {
            return result;
        }
        
        try {
            result = new String(source.getBytes("ISO8859-1"), "UTF-8");
        } catch (UnsupportedEncodingException ex) {
            ex.printStackTrace();
            return "";
        } finally {
        }
        return result;
    }

}
